def func(a,L=[]):
    L.append(a)
    return L

print(func(1))
print(func(1,[1,2,3]))
print(func(2))